Get All dates of a month with laravel carbon

103

$period = CarbonPeriod::create($startDate, $endDate);
foreach($period as $date)
{
  $dates[] = $date->format('d-m-Y');
}

Comments

Submit
0 Comments